chmod: changing permissions of `public_html': Operation not permitted
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
chmod: changing permissions of `public_html': Operation not permitted
Hi everyone,
I run a small site and today I've discovered that my site is down. I found that cPanel has flagged the account suspended even though I haven't got any quotas on the account. I don't know what went wrong. I've tried to unsuspend the account in WHM but a certain part of the function failed.
Quote:
safe_userchgid: chown: /home/crocbits/public_html: Operation not permitted at /scripts/cPScript/SafetyBits.pm line 93.
After searching the internet someone mentioned that the problem might lie in the permissions of the public_html folder. I had a look at the permissions and the folder had no permissions d---------
When I try to chmod the folder I get this error:
Quote:
chmod: changing permissions of `public_html': Operation not permitted
I have no idea what to do next. All the files in the directory are locked too. I tried to move them but this command isn't allowed either. I ran these commands under the 'root' user in SSH.
What are the permissions on /home/crocbits? Can you change the perms on /home/crocbits/public_html as crocbits instead of as root?
Is /home/crocbits or /home an NFS mount? If so do you have write permission to it and is it exported with root_squash?
Ok, I tried changing the permissions of /home/crocbits/public_html as logged in as crocbits too. Got the same error. The permissions of /home/crocbits are drwx--x--x
Im not too sure what is meant by NFS mount. It's a VPS. The fstab looks like this:
root@main [/dev]# mount
/dev/vzfs on / type reiserfs (rw,usrquota,grpquota)
/dev/simfs on /tmp type simfs (rw,nosuid,nodev,noexec)
/dev/simfs on /var/tmp type simfs (rw,nosuid,nodev,noexec)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
root@main [/dev]#
Well ... the only thing (given the perms and mount-options) that
I can think of would be some sort of file-system corruption going
on on that box ... but then again, I have no idea what kind of
set-up that is, how /dev/vzfs came into being and whether or not
you have the facilities to boot into runlevel 1 and do a manual
fsck on the thing.
Shared hosting is really nothing I had any dealings with ...
I've deleted the account through WHM and restored an older backup. The directory still exists and can't be deleted. It's an unmanaged VPS server so they don't provide any support.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.